<!DOCTYPE html>
<html lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>聊天室</title>
  <link href="/public/css/index.css" type="text/css" rel="stylesheet">
  <script type="text/javascript" src="/public/js/ajax.js"></script>
  <script src="/public/js/template-web.js" type="text/javascript"></script>
  <script src="/public/js/index.js" type="text/javascript"></script>
</head>

<body>
  <h1 align="center">聊天窗口</h1>
  <ul>
    {{ each comments_a }}
    <li>{{ $value.name }}说：{{ $value.message }}<span>{{ $value.dateTime }}</span></li>
    {{/each}}
  </ul>
  <div>
    <div>
      <span>名字:</span>
      <input type="text" class="input_name" name="name" placeholder="姓名">
      <button type="submit" class="sure">确定</button>
    </div>
    <div>
      <input type="text" id="input_body" name="message" placeholder="内容">
    </div>
  </div>
</body>

</html>